package com.payment.notify.receive.service;

import com.payment.common.dto.notify.NotifyDto;

/**
 * 类名：NotifyReceiveServiceTemplate.java<br>
 * 描述： 业务调用模版<br>
 * 创建者：XINJF<br>
 * 创建日期：2018年5月9日下午10:49:33<br>
 * 版本：1.0<br>
 * 修改者：<br>
 * 修改日期：<br>
 */
public abstract class NotifyReceiveServiceTemplate {
	
	public abstract NotifyDto resolveSms(String msg);
	
	public Object execute(String msg) {
		NotifyDto notifyDto = resolveSms(msg);
		NotifyReceiveContext context = new NotifyReceiveContext(notifyDto);
		Object object = context.execute();
		return object;
	}

}
